/* FROM — film-style end credits. Scoped to the technical case. */

.detective-credits{
    width:min(960px,90%);
    margin:95px auto 78px;
    color:#f3f7f3
}

.detective-credits-heading{
    text-align:center;
    margin-bottom:25px
}

.detective-credits-kicker{
    display:block;
    color:#78dc94;
    font:700 11px/1.5 Consolas,monospace;
    letter-spacing:.15em;
    margin-bottom:12px
}

.detective-credits-heading h2{
    font:700 clamp(23px,3vw,32px)/1.2 Manrope,sans-serif;
    letter-spacing:.1em;color:var(--text-color);
    margin:0 0 8px
}

.detective-credits-heading p{
    font-size:14px;
    color:var(--text-color);
    opacity:.72;
    margin:0
}

.detective-credits-screen{
    height:500px;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:none;
    position:relative;
    isolation:isolate;
    background:#050706;
    border:1px solid #31463a;
    border-radius:8px;
    cursor:pointer;
    outline-offset:4px;
    scroll-behavior:auto;
    mask-image:linear-gradient(to bottom,transparent 0%,#000 12%,#000 87%,transparent 100%)
}

.detective-credits-screen::-webkit-scrollbar{
    display:none
}

.detective-credits-screen:focus-visible{
    outline:2px solid #78dc94
}

.detective-credits-track {
    padding:
        var(--credits-screen-height, 500px)
        clamp(20px, 4vw, 60px)
        calc(var(--credits-screen-height, 500px) / 2 - 29px);

    text-align: center;
}

.detective-credits-intertitle{
    color:#7be19b;
    font:700 clamp(14px,1.6vw,18px)/1.4 Manrope,sans-serif;
    letter-spacing:.12em;text-align:center;
    margin:0 0 42px
}

.detective-credits-line{
    display:grid;
    grid-template-columns:minmax(0,30%) minmax(0,70%);
    column-gap:18px;align-items:start;
    margin:0 auto 25px;
    max-width:760px;
    font:500 14px/1.55 Manrope,Arial,sans-serif
}

.detective-credits-name{
    color:#f6f6f6;
    font-weight:700;
    text-align:right;
    overflow-wrap:anywhere
}

.detective-credits-line>span:last-child{
    color:#c9d4cd;
    text-align:left;
    overflow-wrap:anywhere
}

.detective-credits-line+.detective-credits-intertitle{
    margin-top:63px
}

.detective-credits-disclaimer,
.detective-credits-last {
    max-width: 680px;
    margin: 0 auto;

    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;

    color: #f7f7f7;
    text-align: center;
}

.detective-credits-disclaimer {
    padding-top: 90px;
    margin-bottom: 20px;
}

.detective-credits-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detective-credits-button {
    width: 84px;
    height: 28px;
    min-height: 28px;
    flex: 0 0 104px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;
    border: 1px solid #59d874;
    border-radius: 5px;

    background: #59d874;
    color: #07170c;

    font: 700 12px/1.2 Manrope, Arial, sans-serif;
    cursor: pointer;
}

.detective-credits-button:hover{
    filter:brightness(1.12)
}

.detective-credits-button:focus-visible{
    outline:2px solid #59d874;
    outline-offset:3px
}

.detective-credits-button-secondary{
    background:transparent;
    color:var(--text-color)
}

.detective-credits-hint {
    font-size: 10px;
    line-height: 1.5;
    color: var(--text-color);
    opacity: .7;
    flex: 0 0 100%;
    text-align: center;
}

.detective-credits-end {
    margin: 480px auto 0;
    color: #FFFFFF;
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.16em;

    text-align: center;
}

@media(max-width:600px){
    
.detective-credits{
    width:94%;
    margin:70px auto
}

.detective-credits-screen{
    height:380px
}

.detective-credits-track{
    padding-left:17px;
    padding-right:17px
}

.detective-credits-line{
    grid-template-columns:minmax(0,38%) minmax(0,62%);
    gap:11px;font-size:12px;
    margin-bottom:22px
}
    
.detective-credits-intertitle{
    font-size:13px;
    letter-spacing:.06em
}

.detective-credits-end {
    margin-top: 370px;
}

}

@media(prefers-reduced-motion:reduce){

.detective-credits-screen{
    scroll-behavior:auto
}

}