/* source: detbasale\dart-duel.htm style block 1 */
body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: #e7f3fb;
    color: #111;
}

.dart-page {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 28px;
    text-align: center;
}

h1 {
    margin: 6px 0 12px;
}

.hidden {
    display: none;
}

.setup-panel {
    display: grid;
    gap: 14px;
    width: min(420px, 100%);
    margin: 0 auto 20px;
    padding: 18px;
    border: 3px solid #111;
    border-radius: 8px;
    background: white;
    box-sizing: border-box;
}

.setup-panel label {
    font-size: 22px;
    font-weight: bold;
}

.setup-panel select,
.setup-panel input {
    padding: 10px;
    font-size: 18px;
}

.name-fields {
    display: grid;
    gap: 10px;
}

.target-score,
.turn-banner {
    display: inline-block;
    margin: 0 6px 14px;
    padding: 12px 18px;
    border-radius: 8px;
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.target-score {
    background: #0b57d0;
}

.turn-banner {
    background: #111827;
}

.game-layout {
    display: grid;
    grid-template-columns: minmax(560px, 660px) minmax(260px, 1fr);
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.dartboard-wrap {
    position: relative;
    width: min(100%, 660px);
    height: 660px;
    background: white;
    border: 3px solid #111;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.dartboard {
    position: absolute;
    width: 540px;
    height: 540px;
    display: block;
    transition: left 0.75s linear, top 0.75s linear;
}

.dart-area {
    stroke: #151515;
    stroke-width: 1.2;
    cursor: pointer;
}

.dart-area:hover {
    filter: brightness(1.18);
}

.number-label {
    pointer-events: none;
    font-size: 21px;
    font-weight: bold;
    fill: #111;
    text-anchor: middle;
    dominant-baseline: middle;
}

.hit-mark {
    pointer-events: none;
}

.hit-mark circle {
    fill: white;
    stroke: #111;
    stroke-width: 2;
}

.hit-mark line {
    stroke: #c62828;
    stroke-width: 4;
    stroke-linecap: round;
}

.side-panel {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.remaining-score {
    padding: 12px 18px;
    border-radius: 8px;
    background: #111827;
    color: white;
    font-size: 34px;
    font-weight: bold;
}

.dart-count {
    font-size: 22px;
    font-weight: bold;
}

.scoreboards {
    display: grid;
    gap: 8px;
    width: min(100%, 320px);
}

.scoreboard {
    display: flex;
    justify-content: space-between;
    padding: 9px 10px;
    border: 2px solid #333;
    border-radius: 8px;
    background: white;
    font-size: 17px;
    font-weight: bold;
}

.scoreboard.active {
    border-color: #0b57d0;
    background: #dbeafe;
}

.throws {
    display: grid;
    gap: 8px;
    width: min(100%, 280px);
    max-height: 180px;
    overflow-y: auto;
}

.throw-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border: 2px solid #333;
    border-radius: 8px;
    background: white;
    font-size: 17px;
    font-weight: bold;
}

.result-mark {
    min-height: 76px;
    font-size: 72px;
    line-height: 1;
    font-weight: bold;
}

.result-mark.correct {
    color: #138a2e;
}

.result-mark.winner {
    color: #138a2e;
    font-size: 34px;
    line-height: 1.2;
}

#message {
    min-height: 28px;
    font-size: 21px;
    font-weight: bold;
}

.button-container {
    margin-top: 20px;
}

button {
    margin: 5px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .game-layout {
        grid-template-columns: 1fr;
    }

    .dartboard-wrap {
        width: min(96vw, 660px);
        height: min(96vw, 660px);
    }

    .dartboard {
        width: min(82vw, 540px);
        height: min(82vw, 540px);
    }
}
