/* Narrator step-by-step guide and daytime discussion timer, inside the story modal. */
.narrator-open {
    width: 100%;
    margin: 12px 0 0;
    min-height: 44px;
}

.narrator-guide {
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #1b1b1b;
    text-align: left;
}

.narrator-guide h3,
.narrator-guide h4 {
    margin: 0 0 10px;
}

.narrator-button {
    min-height: 44px;
    min-width: 44px;
    flex: 0 1 auto;
}

.narrator-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.narrator-button[aria-pressed="true"] {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.narrator-guide button:focus-visible,
.narrator-guide input:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

.narrator-night-bar,
.narrator-nav,
.narrator-timer-presets,
.narrator-timer-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0;
}

.narrator-voice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.narrator-voice input {
    width: 24px;
    height: 24px;
    margin: 0;
}

.narrator-voice-reason {
    flex-basis: 100%;
    font-size: 0.9rem;
    color: #7a1f1f;
}

.narrator-step {
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    overflow-wrap: anywhere;
}

.narrator-progress {
    margin: 0;
    font-weight: 600;
}

.narrator-timer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #c7ccd6;
}

.narrator-timer-display {
    font-size: 3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    margin: 10px 0;
}

.narrator-timer-alert {
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    background: #7a1f1f;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.narrator-timer-alert[hidden] {
    display: none;
}

.narrator-timer-controls .btn-primary {
    width: auto;
    margin-top: 0;
    padding: 12px 24px;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .narrator-button { transition: none; }
}

/* Narrator screen: greeting and next move above the role cards. */
.narrator-next {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    background: #ffffff;
}

.narrator-next h3 {
    margin-bottom: 4px;
    font-size: 1.3em;
}

.narrator-next-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.narrator-next-actions .btn-primary {
    margin-top: 0;
}

.narrator-next-actions .btn-secondary {
    min-height: 48px;
    font-size: 16px;
}

.narrator-next-actions .btn-link {
    min-height: 44px;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
    color: #1d1d3a;
    text-decoration: underline;
    cursor: pointer;
}

/* Role cards read as name and role; the description waits behind "Dettagli". */
.role-more {
    margin-top: 6px;
}

.role-more summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #1d1d3a;
    cursor: pointer;
}

.role-more .role-description {
    margin-top: 4px;
}
