#credit-dialog {
  width: min(390px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(22px, 5vw, 30px);
  color: #f7f7f7;
  background: #202020;
  border: 0;
  border-radius: 16px;
  font: inherit;
}
#credit-dialog[open] { animation: credit-in 280ms var(--ease) backwards }
#credit-dialog::backdrop { background: rgb(0 0 0 / 68%); animation: credit-fade 240ms ease both }
#credit-dialog[data-closing] { animation: credit-out 165ms ease-in both }
#credit-dialog[data-closing]::backdrop { animation: credit-dim-out 165ms ease-in both }
@keyframes credit-in { from { opacity: 0; transform: translateY(10px) scale(.985) } to { opacity: 1; transform: none } }
@keyframes credit-out { to { opacity: 0; transform: translateY(5px) } }
@keyframes credit-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes credit-dim-out { to { opacity: 0 } }
#credit-title { margin: 0 0 10px; color: #c1c1c1; font: inherit; font-size: 15px }
#credit-author { margin: 0; font-size: clamp(21px, 5vw, 26px); font-weight: 650; line-height: 1.4 }
#credit-author a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  border-radius: 4px;
}
#credit-author img { flex: none; border-radius: 50% }
.credit-platform { display: block; color: #c1c1c1; font-size: 13px; font-weight: 400 }
.credit-name { text-decoration: underline; text-decoration-color: #888; text-underline-offset: .17em; text-decoration-thickness: 1px }
#credit-author a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px }
@media (hover: hover) {
  #credit-author a:hover .credit-name { color: var(--accent); text-decoration-color: currentColor }
}
@media (prefers-reduced-motion: no-preference) {
  .credit-name { transition: color 180ms ease, text-decoration-color 180ms ease }
}
.credit-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px }
.credit-actions button {
  min-height: 44px;
  padding: 9px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 180ms, color 180ms, transform 160ms var(--ease);
}
.credit-actions .credit-secondary { position: relative; display: grid; padding: 0; touch-action: manipulation }
.credit-secondary:disabled { opacity: 1; cursor: default }
.credit-button-face {
  display: grid;
  place-items: center;
  padding: 9px 8px;
  border: 1px solid #f2f2f2;
  border-radius: inherit;
  background: #363636;
  color: #fafafa;
  transition: background-color 180ms;
}
.credit-scatter-layer::backdrop { background: transparent; pointer-events: none }
.credit-actions .credit-primary { color: #111; background: var(--accent); font-weight: 650 }
.credit-actions .credit-primary:active { transform: scale(.98) }
.credit-actions button:focus-visible { outline: none }
#credit-dialog[data-keyboard-nav] .credit-actions button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (hover: hover) {
  .credit-secondary:enabled:hover .credit-button-face { background: #414141 }
  .credit-actions .credit-primary:hover { background: #ff814d }
}
@media (forced-colors: active) {
  #credit-dialog { outline: 1px solid CanvasText }
  #credit-dialog .credit-actions button:focus-visible { outline: 2px solid Highlight; outline-offset: 2px }
}
@media (prefers-reduced-motion: reduce) {
  #credit-dialog[open], #credit-dialog::backdrop { animation: none }
  .credit-actions button, .credit-button-face { transition: none }
  .credit-actions .credit-primary:active { transform: none }
}
