/* Football rules (CR req_NQn3oxA2nr03): the line to gain on the board's field strip (a zone
   format), and the overtime / first-down choices on the setup form. */

/* The slider's own track, so the line to gain can sit on it. The thumb is 28px wide, so the
   track's usable run starts and ends 14px in. */
.fb-slider-track {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.fb-slider-track input[type="range"] {
    width: 100%;
}

.fb-line-to-gain {
    position: absolute;
    top: 50%;
    left: calc(14px + (100% - 28px) * var(--fb-line, 0.5));
    width: 3px;
    height: 18px;
    margin-left: -1.5px;
    transform: translateY(-50%);
    border-radius: 2px;
    background: var(--football-gold, #d4a843);   /* the board's own gold (football.css) */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.fb-line-to-gain[hidden] {
    display: none;
}

/* Setup form: the overtime rule and the custom format's first downs (the form's own input look). */
.fb-setup-select {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
    background: var(--bg-tertiary, #ffffff);
    color: var(--text-primary, #111111);
    font-size: 0.875rem;
}

.custom-duration-input .fb-setup-select {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
}

.fb-setup-hint {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    color: var(--text-tertiary, #777777);
}

/* Overtime the rules cannot decide from the record (football-rules-board.js): the scorer is asked
   to end the game when both teams have had the ball. The board's own gold (football.css). */
.fb-ot-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.4rem 0.6rem;
    border-top: 2px solid var(--football-gold, #d4a843);
    background: var(--football-clock-bg, #0a1f07);
    color: var(--football-clock-text, #f1f5f9);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
}

.fb-ot-prompt[hidden] {
    display: none;
}

/* Running clock and mercy rule (CR req_JlMdXyji4V0I): the line over the clock. */
.fb-clock-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    border-top: 2px solid var(--football-gold, #d4a843);
    background: var(--football-clock-bg, #0a1f07);
    color: var(--football-clock-text, #f1f5f9);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
}

.fb-clock-rule[hidden] {
    display: none;
}

.fb-setup-check-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.fb-setup-margin {
    width: 5rem;
}
