/* 0.9.16: credits screen (scrollable locked text) + L7 credits roll. All type is m6x11. Pastel, cozy, readable. */
#credits-panel { justify-content: center; gap: 16px; z-index: 220; }
#credits-panel .cr-scroll { flex: 0 1 auto; width: 100%; max-width: 328px; max-height: calc(100% - 80px); overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; box-sizing: border-box; }
#credits-panel .cr-title { font-size: 32px; line-height: 32px; color: #E87838; text-transform: none; margin: 0 0 8px; }
#credits-panel .cr-byline { font-size: 16px; line-height: 16px; color: #A6BCC1; }
#credits-panel .cr-thanks-head { font-size: 16px; line-height: 16px; color: #A6BCC1; margin-bottom: 4px; }
#credits-panel .cr-thanks { font-size: 16px; line-height: 16px; color: #FFF8F0; max-width: 328px; text-align: center; }
#credits-panel .cr-line, #credits-panel .cr-ded, #credits-panel .cr-closer { font-size: 16px; line-height: 16px; color: #FFF8F0; max-width: 328px; white-space: normal; overflow-wrap: break-word; text-align: center; }
#credits-panel .cr-ded { color: #E8D4F0; }
#credits-panel .cr-closer { color: #F0C878; margin-top: 4px; }
#credits-panel .cr-gap { height: 16px; flex: 0 0 16px; }
#credits-panel #credits-close { margin-top: 8px; flex: 0 0 auto; }

#mode-choice-0912 .mc-credits { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; margin: 0; padding: 8px 12px; min-height: 32px; font-size: 16px; line-height: 16px; color: #A6BCC1; background: transparent; border: 0; cursor: pointer; touch-action: manipulation; }
#mode-choice-0912 .mc-credits:active { color: #FFF8F0; }
#mode-choice-0912 .mc-credits:focus-visible { outline: 2px solid #F0C878; outline-offset: 2px; }

#credits-roll { position: fixed; inset: 0; z-index: 230; background: #142328; color: #FFF8F0; display: flex; flex-direction: column; align-items: stretch; justify-content: stretch; touch-action: none; user-select: none; -webkit-user-select: none; }
#credits-roll.hidden { display: none; }
#credits-roll.is-fading { opacity: 0; transition: opacity 0.35s linear; }
#credits-roll .crr-view { position: relative; flex: 1 1 auto; overflow: hidden; }
#credits-roll .crr-col { position: absolute; left: 0; right: 0; margin: 0 auto; width: min(328px, calc(100% - 32px)); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; will-change: transform; }
#credits-roll .crr-col.hidden, #credits-roll .crr-pages.hidden, #credits-roll .crr-page.hidden { display: none; }
#credits-roll .crr-title { font-size: 32px; line-height: 32px; color: #E87838; margin: 0 0 8px; }
#credits-roll .crr-byline { font-size: 16px; line-height: 16px; color: #A6BCC1; }
#credits-roll .crr-thanks-head { font-size: 16px; line-height: 16px; color: #A6BCC1; margin-bottom: 4px; }
#credits-roll .crr-thanks { font-size: 16px; line-height: 16px; color: #FFF8F0; max-width: 328px; }
#credits-roll .crr-line, #credits-roll .crr-ded, #credits-roll .crr-closer { font-size: 16px; line-height: 16px; color: #FFF8F0; max-width: 328px; white-space: normal; overflow-wrap: break-word; }
#credits-roll .crr-ded { color: #E8D4F0; }
#credits-roll .crr-closer { color: #F0C878; }
#credits-roll .crr-gap { height: 16px; flex: 0 0 16px; }
#credits-roll .crr-hint { flex: 0 0 auto; text-align: center; font-size: 16px; line-height: 16px; color: #A6BCC1; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
#credits-roll .crr-pages { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
#credits-roll .crr-page { width: min(328px, 100%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-height: 100%; overflow-y: auto; }
#credits-roll .crr-closer-wait { visibility: hidden; }
/* Roll-only spacers so the dedication can hold mid-screen before 'Thank you for playing' rises. */
#credits-roll .crr-col [data-cr-id="gap-ded"] { height: 42vh; flex: 0 0 42vh; }
#credits-roll .crr-col [data-cr-id="gap-close"] { height: 50vh; flex: 0 0 50vh; }
