@font-face {
  font-family: "Pinyon Script";
  src: url("fonts/PinyonScript-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.true-credits {
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0d1e2c;
  color: #fff6e2;
  font-family: var(--display);
}

.true-credits-stage,
.true-panel {
  position: absolute;
  inset: 0;
}

.true-panel {
  opacity: 0;
  overflow: hidden;
  transition: opacity 1.65s ease;
}

.true-panel.is-visible { opacity: 1; z-index: 1; }

.true-panel::before {
  position: absolute;
  content: "";
  inset: -28px;
  background: var(--true-plate) center / cover;
  filter: blur(19px) brightness(.65);
}

.true-panel img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--true-zoom,1));
}

.true-credits::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #111e262a, transparent 18% 71%, #0c1729b8),
    linear-gradient(90deg, #111c2d36, transparent 17% 83%, #111c2d2c);
}

.true-credit-names {
  position: absolute;
  z-index: 2;
  inset: auto auto clamp(87px,16vh,155px) clamp(29px,8vw,135px);
  margin: 0;
  padding: 0;
  width: min(500px, 70vw);
  list-style: none;
}

.true-credit-names li {
  position: absolute;
  inset: auto auto 0 0;
  display: grid;
  gap: 3px;
  padding: 28px 28px 18px 9px;
  min-width: min(420px,76vw);
  opacity: 0;
  background: radial-gradient(ellipse at 20% 80%, #091428b0, #101b336e 52%, transparent 74%);
  text-shadow: 0 2px 12px #0c1425;
  transition: opacity 1.1s ease;
}

.true-credit-names li.is-visible { opacity: 1; }
.true-credit-names li span { color: #ffdfa2; font-size: clamp(12px, 1.4vw, 19px); }
.true-credit-names li strong { font-size: clamp(23px, 3.6vw, 53px); line-height: 1.2; }

.true-end-title {
  --true-title-reveal: 0;
  position: absolute;
  z-index: 3;
  inset: 37% 0 auto;
  margin: 0;
  padding: 0 14px 7px;
  transform: translateY(-50%);
  opacity: var(--true-title-reveal);
  pointer-events: none;
  text-align: center;
  font: 400 clamp(56px,9vw,118px)/1.2 "Pinyon Script", "Snell Roundhand", cursive;
  font-synthesis: none;
  white-space: nowrap;
  color: #fff9e8;
  text-shadow: 0 1px 3px #11264ca3, 0 4px 14px #11264c6b;
}

.true-credit-result .true-end-title { --true-title-reveal: 1; }

@media (prefers-reduced-motion: no-preference) {
  .true-credit-result .true-panel { --true-zoom: 1.037; }
  .true-end-title { transform: translateY(calc(-50% + .45rem * (1 - var(--true-title-reveal)))); }
}

.true-credits-footer,
.true-credit-result nav {
  position: absolute;
  z-index: 4;
  inset: auto clamp(19px,4vw,70px) clamp(15px,3vh,35px);
}

.true-credits-footer progress {
  display: block;
  width: 100%;
  height: 2px;
  border: 0;
  accent-color: #f3db9e;
}

.true-credits-footer progress::-webkit-progress-bar { background: #fff7d849; }
.true-credits-footer progress::-webkit-progress-value { background: #fff1bb; }

.true-credit-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  font-family: var(--body);
}

.true-credit-controls .quiet-button { background: #0b203acf; border-color: #ffe6b66d; }
.true-credit-message { margin-inline-end: auto; color: #fff1bb; font-size: 12px; }
.true-credits-track { display: none; }

@media (max-width: 600px) {
  .true-credit-names { inset-block-end: 110px; }
  .true-end-title { inset-block-start: 40%; }
}

@media (prefers-reduced-motion: reduce) {
  .true-panel,
  .true-credit-names li { transition: none; }
}
