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

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

h1 {
    margin: 6px 0 12px;
}

.target-score {
    display: inline-block;
    margin-bottom: 14px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #0b57d0;
    color: white;
    font-size: 30px;
    font-weight: bold;
}

.game-layout {
    display: grid;
    grid-template-columns: minmax(560px, 660px) minmax(230px, 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: 14px;
    justify-items: center;
}

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

.darts-left {
    font-size: 23px;
    font-weight: bold;
}

.throws {
    display: grid;
    gap: 8px;
    width: min(100%, 280px);
    max-height: 250px;
    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: 18px;
    font-weight: bold;
}

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

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

.result-mark.wrong {
    color: #c62828;
    font-size: 36px;
    line-height: 76px;
}

.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.progress-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: lightgray;
}

.progress-dot.middle {
    background-color: blue;
}

#message {
    min-height: 24px;
    font-size: 20px;
    font-weight: bold;
}

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

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

@media (max-width: 880px) {
    .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);
    }

    .target-score {
        font-size: 23px;
    }
}
