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

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

h1 {
    margin: 8px 0 12px;
}

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

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

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

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

.ring {
    stroke: #111;
    stroke-width: 2;
    cursor: pointer;
}

.ring:hover {
    filter: brightness(1.12);
}

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

.ring-label.light {
    fill: white;
}

.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: 18px;
    justify-items: center;
}

.darts {
    display: grid;
    gap: 10px;
    width: min(100%, 280px);
}

.dart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: white;
    font-size: 18px;
    font-weight: bold;
}

.dart.used {
    background: #d7f5dd;
    border-color: #178a33;
}

.dart-icon {
    color: #c62828;
    font-size: 28px;
}

.current-score {
    font-size: 24px;
    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: 760px) {
    .game-layout {
        grid-template-columns: 1fr;
    }

    .dartboard-wrap {
        height: min(92vw, 520px);
    }

    .dartboard {
        width: min(76vw, 400px);
        height: min(76vw, 400px);
    }

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