/* AI CONTEXT: Structures tagger styles (station-4)
   PURPOSE: Three tally sections — reveal-on-click numpad entry (0–11) + live
            grouped-tuple stats and per-position single-number distribution.
   DEPENDENCIES: common.css, index.css (base buttons, timer, event log) */

#penalty-sections { display: flex; flex-direction: column; gap: 22px; }

.pen-block {
    padding: 14px;
    border: 1px solid #e0e3f0;
    border-radius: 10px;
    background: #fafbff;
}
.pen-title {
    margin: 0 0 12px;
    text-align: center;
    color: #3f51b5;
    font-size: 1.15em;
}

/* ── Start / reveal button ────────────────────────────────────────── */
.pen-start {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 10px;
    background: #4CAF50;
    color: #fff;
    font-size: 1.25em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.pen-start:hover { background: #45a049; }

/* ── Entry panel (numpad) ─────────────────────────────────────────── */
.pen-entry { margin-top: 12px; }
.pen-entry[hidden] { display: none; }

.pen-fields {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.pen-field {
    flex: 1 1 120px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border: 2px solid #c5cae9;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}
.pen-field:hover { border-color: #9fa8da; }
.pen-field.filled { background: #eef1ff; }
.pen-field.active {
    border-color: #3f51b5;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.18);
}
.pen-field-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    text-align: center;
}
.pen-field-value {
    font-size: 2em;
    font-weight: 800;
    color: #1a237e;
    line-height: 1.1;
}

.pen-numpad {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 12px;
}
.pen-num {
    min-height: 52px;
    border: none;
    border-radius: 8px;
    background: #e8eaf6;
    color: #1a237e;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.1s, transform 0.05s;
}
.pen-num:hover  { background: #c5cae9; }
.pen-num:active { transform: scale(0.94); }

.pen-kbd-hint {
    margin: 0 0 12px;
    text-align: center;
    color: #888;
    font-size: 0.82em;
}

.pen-entry-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.pen-save, .pen-cancel {
    min-width: 130px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
}
.pen-save { background: #4CAF50; }
.pen-save:hover:not(:disabled) { background: #45a049; }
.pen-save:disabled { background: #b7c3b8; cursor: not-allowed; }
.pen-cancel { background: #9e9e9e; }
.pen-cancel:hover { background: #8a8a8a; }

/* Live grouped-tuple stats moved to stats.css (shared with the display). */
