/* END-01 end credits */
#credits { position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0; transition: opacity .6s; }
#credits.on { opacity: 1; pointer-events: auto; }
#credits .cr-skip { position: absolute; top: 14px; right: 16px; z-index: 5; opacity: .35; transition: opacity .2s; }
#credits .cr-skip:hover { opacity: 1; }
/* 1. ED drop: the stage holds, desaturates, letterbox bars slide in */
body.cr-holding #stage { filter: saturate(.55) brightness(.85); transition: filter 2.5s; }
#credits.cr-hold { background: transparent; }
#credits .cr-bars::before, #credits .cr-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height 1.8s ease; }
#credits .cr-bars::before { top: 0; } #credits .cr-bars::after { bottom: 0; }
#credits.cr-hold .cr-bars::before, #credits.cr-hold .cr-bars::after { height: 11vh; }
#credits.cr-title, #credits.cr-roll, #credits.cr-black, #credits.cr-post, #credits.cr-next, #credits.cr-tbc { background: #000; }
/* 2. title */
#credits .cr-tcard { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; animation: crIn 1.6s ease both; }
#credits .cr-tcard small { letter-spacing: .5em; opacity: .6; font-size: 12px; }
#credits .cr-tcard h1 { font-family: "Bebas Neue", "Chakra Petch", sans-serif; font-size: clamp(40px, 7vw, 96px); letter-spacing: .08em; margin: 10px 0; font-weight: 400; }
#credits .cr-tcard p { opacity: .75; font-size: 16px; letter-spacing: .1em; }
@keyframes crIn { from { opacity: 0; letter-spacing: .4em; filter: blur(6px); } to { opacity: 1; filter: none; } }
/* 3. roll */
#credits .cr-stills { position: absolute; left: 4vw; top: 12vh; width: 52vw; height: 76vh; }
#credits .cr-stills i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 9s linear; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
#credits .cr-stills i.on { opacity: 1; transform: scale(1); }
#credits .cr-scroll { position: absolute; right: 5vw; top: 0; bottom: 0; width: 34vw; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
#credits.cr-nostills .cr-scroll { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, 90vw); }
#credits .cr-col { color: #e8eef5; text-align: center; will-change: transform; }
#credits .cr-head { margin-bottom: 70px; } #credits .cr-head small { letter-spacing: .4em; opacity: .55; font-size: 11px; }
#credits .cr-head h2 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 44px; letter-spacing: .06em; margin: 6px 0; }
#credits section { margin: 0 0 64px; } #credits section h3 { font-size: 11px; letter-spacing: .45em; color: #8fb4d8; margin: 0 0 18px; font-weight: 600; }
#credits .cr-line { font-size: 17px; margin: 8px 0; letter-spacing: .04em; } #credits .cr-big { font-size: 24px; }
#credits .cr-cast { display: flex; align-items: center; gap: 12px; text-align: left; margin: 14px 0; position: relative; }
#credits .cr-face { width: 44px; height: 44px; border-radius: 50%; background: #223 center / cover; flex: none; display: flex; align-items: center; justify-content: center; color: #889; font-style: normal; }
#credits .cr-cast b { font-size: 17px; font-weight: 600; display: block; } #credits .cr-cast small { opacity: .6; font-size: 12px; font-style: italic; }
#credits .cr-dots { flex: 1; border-bottom: 1px dotted rgba(255,255,255,.25); margin: 0 4px; }
#credits .cr-cast em { font-style: normal; opacity: .85; }
/* hint 1 redacted */
#credits .cr-red { background: #e8eef5; color: transparent; letter-spacing: -1px; border-radius: 1px; animation: crRed 3s steps(1) infinite; }
@keyframes crRed { 0%, 92% { opacity: 1; } 94% { opacity: .2; } 96% { opacity: 1; } }
#credits .cr-redact .cr-face { filter: blur(3px) grayscale(1); }
/* hint 5 strike */
#credits .cr-strike::after { content: ""; position: absolute; left: 52px; top: 50%; height: 2px; width: 0; background: #c62828; transition: width 1.4s cubic-bezier(.6,0,.2,1); }
#credits .cr-strike.x::after { width: calc(100% - 52px); }
#credits .cr-strike.x b { opacity: .55; transition: opacity 1.4s; }
/* hint 4 personal */
#credits .cr-you { font-style: italic; color: #ffcf8a; font-size: 16px; margin: 10px 0; text-shadow: 0 0 12px rgba(255,170,60,.35); }
#credits .cr-gmnote { color: #8a8; font-style: normal; font-size: 11px; text-shadow: none; }
/* hint 6 clues */
#credits .cr-clue { cursor: pointer; color: #9fd3ff; font-size: 15px; margin: 10px 0; letter-spacing: .1em; opacity: .8; }
#credits .cr-clue:hover { opacity: 1; text-shadow: 0 0 10px #4fc3f7; } #credits .cr-clue.got { color: #81c784; cursor: default; }
/* hint 2 secret frame */
#credits .cr-secret { position: absolute; inset: 0; background: center / cover no-repeat #000; opacity: 0; pointer-events: none; z-index: 3; }
#credits .cr-secret.on { opacity: 1; animation: crFlash .2s steps(2) both; }
@keyframes crFlash { 0% { filter: brightness(3) contrast(1.4); } 100% { filter: none; } }
/* hint 3 glitch */
#credits .cr-glitch { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 4; pointer-events: none; }
#credits.cr-glitching .cr-glitch { display: flex; }
#credits .cr-glitch b { font-family: ui-monospace, Consolas, monospace; font-size: clamp(18px, 2.6vw, 34px); color: #ff5252; letter-spacing: .2em; text-shadow: 2px 0 #00e5ff, -2px 0 #ff1744; animation: crJit .12s steps(2) infinite; }
#credits.cr-glitching .cr-stills, #credits.cr-glitching .cr-scroll { animation: crJit .09s steps(2) infinite; filter: hue-rotate(90deg) contrast(1.6); opacity: .5; }
@keyframes crJit { 0% { transform: translate(2px, -1px); } 50% { transform: translate(-3px, 2px) skewX(4deg); } 100% { transform: translate(1px, 0); } }
/* 4. post-credit, next, tbc */
#credits .cr-postin { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14vh; color: #fff; }
#credits .cr-postin i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .55; animation: crIn 3s ease both; }
#credits .cr-postin p { position: relative; font-size: 22px; max-width: 70vw; text-align: center; } #credits .cr-postin b { display: block; font-size: 13px; letter-spacing: .3em; opacity: .7; margin-bottom: 8px; }
#credits .cr-nextin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; }
#credits .cr-nextin i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .35; animation: crIn 2.5s ease both; }
#credits .cr-nextin small, #credits .cr-nextin h1, #credits .cr-nextin p { position: relative; }
#credits .cr-nextin small { letter-spacing: .6em; color: #4fc3f7; } #credits .cr-nextin h1 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: clamp(36px, 6vw, 80px); margin: 8px 0; animation: crIn 1.2s ease both; }
#credits .cr-tbcin { position: absolute; right: 6vw; bottom: 10vh; font-family: "Bebas Neue", sans-serif; font-size: clamp(28px, 4vw, 54px); color: #fff; letter-spacing: .12em;
  border-left: 6px solid #ffb74d; padding-left: 16px; animation: crTbc .5s cubic-bezier(.2,.9,.3,1) both; }
@keyframes crTbc { from { transform: translateX(60px); opacity: 0; } }
@media (max-width: 760px) {
  #credits .cr-stills { left: 0; right: 0; top: 0; width: auto; height: 38vh; opacity: .55; }
  #credits .cr-scroll { left: 6vw; right: 6vw; width: auto; top: 30vh; }
}
@media (prefers-reduced-motion: reduce) { #credits .cr-stills i { transition: opacity .6s; transform: none; } }
