* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #fff;
    border-bottom: 1px solid #888;
    flex-shrink: 0;
}

header h1 { font-size: 16px; color: #000; }
#runde { font-size: 13px; color: #444; }

#arena { flex: 1; display: flex; min-height: 0; }

.seite {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 8px;
    min-width: 0;
}

.seite.p1 { border-right: 1px solid #888; }

.spielername { display: flex; justify-content: space-between; align-items: baseline; }
.spielername b { font-size: 14px; }
.p1 .spielername b { color: #0040a0; }
.p2 .spielername b { color: #a02000; }

.werte { display: flex; gap: 16px; font-size: 13px; }
.werte span { color: #555; }
.werte b { color: #000; }

.kisten { display: flex; gap: 6px; }
.kiste-btn {
    flex: 1;
    padding: 6px 4px;
    font-size: 11px;
    line-height: 1.3;
    font-family: Arial, sans-serif;
    background: #efefef;
    color: #000;
    border: 1px solid #888;
    cursor: pointer;
}
.kiste-btn:hover:not(:disabled) { background: #e2e2e2; }
.kiste-btn:disabled { color: #999; background: #fafafa; cursor: default; }
.kiste-btn b { font-size: 12px; }

.roulette {
    position: relative;
    height: 130px;
    background: #fff;
    border: 1px solid #888;
    overflow: hidden;
}

.marker {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000;
    z-index: 3;
    transform: translateX(-1px);
}

.strip {
    display: flex;
    gap: 4px;
    padding: 6px 0;
    height: 100%;
    will-change: transform;
}

.item {
    width: 118px;
    flex: 0 0 118px;
    background: #fff;
    border: 1px solid #999;
    border-bottom: 4px solid #999;
    padding: 4px;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.2;
    overflow: hidden;
}

.item .bild { flex: 1; display: flex; align-items: center; min-height: 0; }
.item .waffe { color: #000; font-weight: 700; }
.item .skin { color: #555; }
.item .preis { color: #2e7d32; font-weight: 700; }

.ergebnis {
    min-height: 78px;
    background: #fff;
    border: 1px solid #888;
    padding: 6px 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ergebnis .grossbild { width: 150px; flex-shrink: 0; }
.ergebnis.leer { color: #999; font-size: 12px; }

.verlauf { flex: 1; overflow-y: auto; font-size: 12px; min-height: 0; }
.verlauf div {
    padding: 2px 6px;
    border-left: 3px solid #999;
    margin-bottom: 2px;
    background: #fff;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.verlauf .rundensumme { font-weight: 700; color: #000; border-left-color: #444; background: #f0f0f0; }

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
#overlay.aus { display: none; }

.box { text-align: center; max-width: 520px; padding: 20px; border: 1px solid #888; background: #fff; }
.box h2 { font-size: 20px; margin-bottom: 10px; color: #000; }
.box p { margin-bottom: 8px; color: #444; font-size: 13px; line-height: 1.5; }
.box button {
    margin-top: 14px;
    background: #efefef;
    color: #000;
    border: 1px solid #888;
    padding: 4px 16px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    cursor: pointer;
}
.box button:hover { background: #e2e2e2; }
.box button:focus-visible { outline: 2px solid #0040a0; outline-offset: 1px; }
